﻿using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 根据给定的表结构信息创建相应的表
    /// </summary>
    [ProtoContract(Name = "CreateTableRequest")]
    public class CreateTableRequest
    {

        private TableMeta tableMeta;

        private ReservedThroughput reservedThroughput;

        public CreateTableRequest()
        {

        }
       
        public CreateTableRequest(TableMeta tableMeta, ReservedThroughput reservedThroughput)
        {
           
            this.tableMeta = tableMeta;
            this.reservedThroughput = reservedThroughput;
        }
        /// <summary>
        /// 将要创建的表的结构信息
        /// </summary>
        [ProtoMember(1, Name = "table_meta", IsRequired = true)]
        public TableMeta TableMeta
        {
            get { return tableMeta; }
            set { tableMeta = value; }
        }
        /// <summary>
        /// 将要创建的表的初始预留读写吞吐量设定，任何表的预留写吞吐量与预留写吞吐量均不能超过5000。
        /// </summary>
        [ProtoMember(2, Name = "reserved_throughput", IsRequired = true)]
        public ReservedThroughput ReservedThroughputs
        {
            get { return reservedThroughput; }
            set { reservedThroughput = value; }
        }
    }
}
